﻿using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using WebApp.Models;

namespace WebApp.Entities
{
    [Table("subscrebe")]
    public class Subscribe
    {
        public int Id { get; set; }
        [Required]
        public int AppId { get; set; }

        [Required]
        public IoTNotifyType NotifyType { get; set; }

        [Required]
        [MaxLength(255)]
        public string CallbackUrl { get;  set; }
        public DateTime CreateTime { get; set; }
        [Required]
        [MaxLength(50)]
        public string Remark { get; set; }
    }
}